home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19971216-19980424 / 000281_news@newsmaster….columbia.edu _Mon Mar 9 11:56:13 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA24662
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 9 Mar 1998 11:56:00 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA26882
  7.     for kermit.misc@watsun; Mon, 9 Mar 1998 11:55:59 -0500 (EST)
  8. Path: news.columbia.edu!panix!nntprelay.mathworks.com!rill.news.pipex.net!pipex!newsfeed.ecrc.net!newsfeed2.ecrc.net!news.siemens.de!news.mch.sni.de!michel
  9. From: Michel.Dalle@sni.be (Michel Dalle)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Opening shared files with Kermit 95 ?
  12. Date: Mon, 09 Mar 1998 18:49:18 GMT
  13. Organization: Siemens Nixdorf
  14. Lines: 23
  15. Message-ID: <6e1655$8n9$1@horus.mch.sni.de>
  16. NNTP-Posting-Host: michel.ch.sni.be
  17. X-Newsreader: News Xpress 2.01
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:8475
  19.  
  20. Hi,
  21.  
  22. is there a way, in Kermit 95, to open shared files (where some bytes are 
  23. already locked by another application) ?
  24.  
  25. The context is the following : 
  26.  
  27. An NT application and a Kermit script use a common logfile for specifying 
  28. files to be transferred, the status of each transfer etc.
  29. When the NT application wants to add a new file to be transmitted, it opens 
  30. the logfile as shared (e.g. in C : with _sopen(...,_SH_DENYNO,...), so that 
  31. other applications can still read and write to that file), locks some bytes at 
  32. the end of the logfile, adds the new entry, unlocks the bytes again and closes 
  33. the logfile.
  34.  
  35. In the meantime, the Kermit script may have to open the same logfile to check 
  36. which files are to be transmitted. However, when I try to "open read 
  37. logfile" when the NT application has locked those bytes, the only result I get 
  38. is errno 13 (Permission denied).
  39.  
  40. What exactly is behind the "open read" command in K-95 ?
  41.  
  42. Michel.